package com.bootdo.analyze.service.impl;

import com.bootdo.analyze.dao.ClientSellAIDao;
import com.bootdo.analyze.dao.FinanceFormDao;
import com.bootdo.analyze.domain.ClientSellAIDO;
import com.bootdo.analyze.domain.FinanceFormDO;
import com.bootdo.analyze.service.ClientSellAIService;
import com.bootdo.analyze.service.FinanceFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FinanceFormServiceImpl implements FinanceFormService {
    @Autowired
    private FinanceFormDao financeFormDao;


    @Override
    public FinanceFormDO getFinanceFormDO(FinanceFormDO financeFormDO1) {
        FinanceFormDO financeFormDO = new FinanceFormDO();
        financeFormDO.setIncome(financeFormDao.income(financeFormDO1));
        financeFormDO.setExpensesSales(financeFormDao.expensesSales(financeFormDO1));
        financeFormDO.setPaymentpPreference(financeFormDao.paymentpPreference(financeFormDO1));
        financeFormDO.setReturnGoodsMoney(0.00);
        financeFormDO.setDailyExpenses(financeFormDao.dailyExpenses(financeFormDO1));
        financeFormDO.setPurchaseExpenses(financeFormDao.purchaseExpenses(financeFormDO1));
        financeFormDO.setPurchaseTax(0.00);
        financeFormDO.setCollectionPreference(financeFormDao.collectionPreference(financeFormDO1));
        financeFormDO.setTransferFee(financeFormDao.transferFee(financeFormDO1));
        financeFormDO.setOutboundFreight(financeFormDao.outboundFreight(financeFormDO1));
        financeFormDO.setSalesReturnsExpenses(financeFormDao.salesReturnsExpenses(financeFormDO1));
        financeFormDO.setPurchaseReturnPrice(financeFormDao.purchaseReturnPrice(financeFormDO1));
        financeFormDO.setAllocateExpenses(0.00);

        return financeFormDO;
    }


}
